package com.boco.modules.fdoc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.boco.common.persistence.Page;
import com.boco.modules.fdoc.dao.PmDoctorHosPitalDao;
import com.boco.modules.fdoc.model.PmDoctorHospitalEntity;
import com.boco.modules.fdoc.service.PmDoctorHospitalService;

@Service
public class PmDoctorHospitalServiceImpl implements PmDoctorHospitalService{
	@Resource
	PmDoctorHosPitalDao pmDoctorHosPitalDao;

	@Override
	public Page<PmDoctorHospitalEntity> getPmDocHosLst(Page<PmDoctorHospitalEntity> page,
			PmDoctorHospitalEntity entity) {
		entity.setPage(page);
		List<PmDoctorHospitalEntity> dataList =pmDoctorHosPitalDao.getPmDocHosLst(entity);
		page.setList(dataList);
		return page;
	}

	@Override
	public Page<PmDoctorHospitalEntity> getPmDocHosLstIsTimeLst(Page<PmDoctorHospitalEntity> page,
			PmDoctorHospitalEntity entity) {
		entity.setPage(page);
		List<PmDoctorHospitalEntity> dataList=pmDoctorHosPitalDao.getPmDocHosLstIsTimeLst(entity);
		page.setList(dataList);
		return page;
	}

}
